package cn.edu.scau.cmi.hekaimin.Hibernate.domain;

import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption;

public class Student {
	private int s_id;
	private String s_name;
	
	private Teacher teacher;
	
	public Student() {
		super();
	}
	public Student(String name,Teacher teacher) {
		super();
		this.s_name = name;
		this.teacher = teacher;
	}
	
	public int getS_id() {
		return s_id;
	}
	public void setS_id(int s_id) {
		this.s_id = s_id;
	}
	public String getS_name() {
		return s_name;
	}
	public void setS_name(String s_name) {
		this.s_name = s_name;
	}
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	@Override
	public String toString() {
		return getS_name();
	}
	
	
}
